package org.summer.lawyer.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 佣金记录对象 brokerage_record
 *
 * @author summer
 * @date 2024-06-27
 */
@Data
@TableName("brokerage_record")
public class BrokerageRecord  {


    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;



    /**
     * 微信用户ID
     */
    @TableField(value = "wx_user_id")
    private Long wxUserId;



    /**
     * 业务ID
     */
    @TableField(value = "biz_id")
    private String bizId;



    /**
     * 业务类型
     */
    @TableField(value = "biz_type")
    private String bizType;



    /**
     * 业务图片
     */
    @TableField(value = "biz_picture")
    private String bizPicture;



    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;



    /**
     * 金额,单位分
     */
    @TableField(value = "total_amount")
    private Long totalAmount;



    /**
     * 佣金比例
     */
    @TableField(value = "first_percent")
    private Integer firstPercent;



    /**
     * 佣金,单位分
     */
    @TableField(value = "amount")
    private Long amount;



    /**
     * 状态（0待结算，1已结算）
     */
    @TableField(value = "status")
    private String status;



    /**
     * 冻结天数
     */
    @TableField(value = "frozenDay")
    private Integer frozenDay;



    /**
     * 解冻时间
     */
    @TableField(value = "unfreeze_time")
    private Date unfreezeTime;



    /**
     * 来源下级分销用户ID
     */
    @TableField(value = "source_user_id")
    private Long sourceUserId;



    /**
     * 来源下级分销用户姓名
     */
    @TableField(value = "source_user_name")
    private String sourceUserName;



    /**
     * 下级分销用户等级
     */
    @TableField(value = "source_user_level")
    private Integer sourceUserLevel;



    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;



    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;



    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;



    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;



    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;



}
